package chapter04.EXAmple14;
abstract class Animal {
    abstract void shout ();
}
class Cat extends Animal {
    void shout (){
        System.out.println("喵喵喵....");
    }
}
class Dog extends Animal {
    void shout (){
        System.out.println("汪汪汪....");
    }
}

public class EXAMple14 {
    public static void main (String [] args) {
        Animal cat = new Cat();
        Animal dog = new Dog();
        cat.shout();
        dog.shout();
    }
}
